<?php
if(!defined('IN_DISCUZ')) {
	exit('Access Denied');
}
define('NOROBOT', TRUE);
require_once libfile('function/forumlist');
require_once libfile('function/forum');
require_once libfile('function/post');
$srchmod = 2;
	$orderby='lastpost';	
	$ascdesc='desc';
		require_once libfile('function/misc');		
		$page = max(1, intval($_G['page']));
		$rowNum=100;
		$start_limit = ($page - 1) * $rowNum+100;
		$index[ids]="'47','2','48','49','50','51','52','53','54','55','38','39','40','41'";
		$index['num']=1;
		$threadlist = array();
		$query = DB::query("SELECT * FROM ".DB::table('forum_thread')." WHERE fid IN ($index[ids]) AND displayorder>='0' ORDER BY $orderby $ascdesc LIMIT $start_limit, $rowNum");
		while($thread = DB::fetch($query)) {
			$thread['subject'] = $thread['subject'];
			$threadlist[$thread['tid']] = procthread($thread, 'dt');
		}
		include template('leftlist/list');
?>